<!doctype html>
<html class="x-admin-sm" xmlns:th="http://www.thymeleleaf.org">
<head th:insert="base">
	<meta charset="UTF-8">
    <title></title>
</head>
<link rel="stylesheet" href="/xadmin/css/login.css">
<body class="login-bg">
    
    <div class="login layui-anim layui-anim-up">
        <div class="message" id="loginMessage"></div>
        <div id="darkbannerwrap"></div>
        
        <form method="post" action="/back/user/main" class="layui-form" >
            <input name="loginAccount" autocomplete="off" placeholder="用户名"  type="text" lay-verify="required" class="layui-input" >
            <hr class="hr15">
            <input name="loginPassword" autocomplete="off" lay-verify="required" placeholder="密码"  type="password" class="layui-input">
            <hr class="hr15">
            <input value="登录" lay-submit lay-filter="login" style="width:100%;height: 40px !important;" type="submit">
            <br/>
            <br/>
            <a onclick="xadmin.open('注册','/back/userInfo/add')" class="layui-btn layui-btn-normal" style="width:100%;height: 40px !important;">注册</a>
            <hr class="hr20" >
        </form>
    </div>

    <script>
        $(function  () {
            $("#loginMessage").html(loginMessage);
            layui.use('form', function(){
              var form = layui.form;

              //监听提交
              form.on('submit(login)', function(data){
                  layer.msg("正在登录，请稍等");
                  return true;
              });
            });
        })
    </script>
</body>
</html>